<% class_name = ' class="main_without_margin"' %>
<% if @page.margin.length > 0 || @site.home_site? %>
    <% class_name = ' class="main_with_margin"' %>
    <div id="margin">
        <%= render :partial => 'site/partials/my_sites' %>
        <%= @page.margin %>
    </div>
<% end %>
<div id="main"<%= class_name %>>
    <h1><%= @page.title %><%= render :partial => 'site/partials/edit' %></h1>
    <%= @page.description %>
    <%= render :partial => 'site/partials/search' %>
</div>